export const REDIRECT_NAME = "Redirect"

export const PARENT_LAYOUT_NAME = "ParentLayout"

export const PAGE_NOT_FOUND_NAME = "PageNotFound"
export const PAGE_EXCEPTION_NAME = "PageException"
export const WELCOME_NAME = "Welcome"

export const EXCEPTION_COMPONENT = () => import("/@/views/sys/exception/Exception.vue")

/**
 * @description: default layout
 */
export const LAYOUT = () => import("/@/layouts/default/index.vue")
export const SIMPLE_LAYOUT = () => import("/@/layouts/simple/index.vue")
export const IFRAME_BLANK = () => import('/@/layouts/iframe/FrameBlank.vue');
export const IFRAME_SIMPLE = () => import('/@/layouts/iframe/FrameSimple.vue');

/**
 * @description: parent-layout
 */
export const getParentLayout = (_name?: string) => {
  return () =>
    new Promise((resolve) => {
      resolve({
        name: PARENT_LAYOUT_NAME,
      })
    })
}
